﻿using System;

namespace enyo
{
    public class CroppableImage : ScrollingImage
    {
        public EnyoEvent<Control> onCrop;

        public CropParams GetCropParams()
        {
            return null;
        }
    }


    public class CropParams
    {
        /// <summary>
        /// left pixel start of the cropped image
        /// </summary>
        public int SuggestedXtop;

        /// <summary>
        /// top pixel start of the cropped image
        /// </summary>
        public int SuggestedYtop;

        /// <summary>
        /// zoom%
        /// </summary>
        public string SuggestedScale;

        /// <summary>
        /// rounded X size of the cropped image
        /// </summary>
        public int SuggestedXsize;

        /// <summary>
        /// rounded Y size of the cropped image
        /// </summary>
        public int SuggestedYsize;

        /// <summary>
        /// original image width
        /// </summary>
        public int SourceWidth;

        /// <summary>
        /// original image height
        /// </summary>
        public int SourceHeight;

        /// <summary>
        /// absolute path to the image
        /// </summary>
        public string SourceImage;

        /// <summary>
        /// center of the cropped image in relation to width
        /// </summary>
        public int FocusX;

        /// <summary>
        /// center of the cropped image in relation to height
        /// </summary>
        public int FocusY;
    }
}
